package main

import (
	"time"
	"yunque-message-client/model/ProtoModel"
	"yunque-message-client/service"
)

/**
 * @Description
 * @Author yichen
 * @Date 2023/9/24 0024 14:07
 **/

func main() {
	service := &service.Message{}
	uid := "1074"
	msg := &ProtoModel.MessageProto{}
	msg.Id = 1
	msg.Receiver = "1074"
	msg.Sender = "1078"
	msg.Content = map[string]string{"text": "你好，这是一条消息"}
	msg.SendTime = time.Now().Unix()
	err := service.SendTo(uid, msg)
	if err != nil {
		return
	}

}
